package com.yh.csx.crm.service.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * ApprovalFlowLogResp class
 *
 * @author huyalin
 * @date 2019/2/26
 */
@Data
public class AppApprovalFlowLogResp {

    @ApiModelProperty("当前节点")
    private FlowNode currentNode;

    @ApiModelProperty("下一节点")
    private FlowNode nextNode;

    @ApiModelProperty("节点流程")
    private List<FlowNode> flowNodeList;

    @Data
    public static class FlowNode {

        @ApiModelProperty("操作时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
        private Date operationTime;

        @ApiModelProperty("步骤")
        private String step;

        @ApiModelProperty("节点编码")
        private String nodeCode;

        @ApiModelProperty("操作人")
        private String operationPerson;

        @ApiModelProperty("操作行为")
        private String operationAction;

        @ApiModelProperty("备注")
        private String remark;

    }
}
